package com.jeesite.modules.pt.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 平台参数Entity
 * @author 李寒冰
 * @version 2024-12-10
 */
@Table(name="pt_setting", alias="a", label="平台参数信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="param_key", attrName="paramKey", label="参数key"),
		@Column(name="param_name", attrName="paramName", label="参数名称", queryType=QueryType.LIKE),
		@Column(name="param_value", attrName="paramValue", label="参数值"),
		@Column(name="update_time", attrName="updateTime", label="更新时间", isUpdateForce=true),
		@Column(name="type", attrName="type"),
		@Column(name="dict_type", attrName="dictType"),
	}, orderBy="a.id DESC"
)
public class PtSetting extends DataEntity<PtSetting> {
	
	private static final long serialVersionUID = 1L;
	private String paramKey;		// 参数key
	private String paramName;		// 参数名称
	private String paramValue;		// 参数值
	private Date updateTime;		// 更新时间
	private String type;		// 更新时间
	private String dictType;

	public PtSetting() {
		this(null);
	}
	
	public PtSetting(String id){
		super(id);
	}

	public String getDictType() {
		return dictType;
	}

	public void setDictType(String dictType) {
		this.dictType = dictType;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getParamKey() {
		return paramKey;
	}

	public void setParamKey(String paramKey) {
		this.paramKey = paramKey;
	}
	
	public String getParamName() {
		return paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}
	
	public String getParamValue() {
		return paramValue;
	}

	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}